package enumdemo;

import util.Print;

import java.util.EnumMap;

public class EnumMapDemo {

	public static void main(String[] args) {
		EnumMap<AlarmPoints, Command> em = new EnumMap<>(AlarmPoints.class);
		em.put(AlarmPoints.STAIR1,new Command() {
			@Override
			public void action() {
				Print.print(AlarmPoints.STAIR1);
			}
		});
	}
}

interface Command {
	void action();
}
